﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:viewer="clr-namespace:Microsoft.Reporting.WinForms;assembly=Microsoft.ReportViewer.WinForms"
        xmlns:toolkit="http://schemas.microsoft.com/wpf/2008/toolkit"
    xmlns:chartingToolkit="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit" 
        xmlns:s="clr-namespace:System;assembly=mscorlib"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="PlayGround.WPF.MainWindow"
        Title="MainWindow"
    
    
  xmlns:local="clr-namespace:PlayGround.WPF"
      xmlns:dw="clr-namespace:DrWPF.Windows.Controls" WindowState="Maximized">
    <Window.Resources>
        
        
        
    </Window.Resources>
        <Grid x:Name="LayoutRoot">
        <Button Content="Button" Height="23" HorizontalAlignment="Center" VerticalAlignment="Bottom" Width="75"  />
        <TabControl SelectedIndex="1">
        	<TabItem Header="PerfTrace">
        		<DockPanel LastChildFill="False">
        			<StackPanel CanVerticallyScroll="True" Width="742">
        				<StackPanel Orientation="Horizontal">
        					<Button  x:Name="button2" Content="Schedule" HorizontalAlignment="Left" />
        					<Button Content="Add server"  />
        				</StackPanel>
        				<ListBox x:Name="Serverbox" Padding="0,5">
        					<local:Serveritem Padding="0"/>
        				</ListBox>
        				<Button Content="Add Instance" Width="75" HorizontalAlignment="Left"  />
        				<ListBox x:Name="InstanceBox">
        					<local:InstanceItem ScrollViewer.CanContentScroll="True"/>
        				</ListBox>
        			</StackPanel>
        		</DockPanel>
        	</TabItem>
        	<TabItem Header="Results">
        		<Grid x:Name="ChartGrid" Margin="0">
        			<Grid.ColumnDefinitions>
        				<ColumnDefinition Width="*"/>
        				<ColumnDefinition Width="*"/>
        				<ColumnDefinition Width="*"/>
        			</Grid.ColumnDefinitions>
        			<Grid.RowDefinitions>
        				<RowDefinition Height="*"/>
        				<RowDefinition Height="*"/>
        			</Grid.RowDefinitions>
        			<chartingToolkit:Chart  Margin="0" x:Name="chart1" Title="CPU Usage" />
        			<chartingToolkit:Chart DataContext="1,10 2,20 3,30 4,40" Margin="0" x:Name="chart2" Title="Page Life Expectency (Seconds)" Grid.Column="1" d:LayoutOverrides="Width" />
        			<chartingToolkit:Chart DataContext="1,10 2,20 3,30 4,40" Margin="0" x:Name="chart3" Title="Open connections" Grid.Column="2" d:LayoutOverrides="Width"  />
        			<chartingToolkit:Chart DataContext="1,10 2,20 3,30 4,40" Margin="0" x:Name="chart4" Title="Disk Read/Writes " d:LayoutOverrides="Width" Grid.Row="1" />
        			<chartingToolkit:Chart DataContext="1,10 2,20 3,30 4,40" Margin="0" x:Name="chart5" Title="Disk Latency" Grid.Column="1" d:LayoutOverrides="Width" Grid.Row="1"/>
        			<chartingToolkit:Chart DataContext="1,10 2,20 3,30 4,40" Margin="0" x:Name="chart6" Title="?" Grid.Column="2" d:LayoutOverrides="Width" Grid.Row="1" />
        		</Grid>
        	</TabItem>
        </TabControl>
    </Grid>

</Window>
